package com.gezi.admin.module.sys.dict.data.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

/**
 * @Author 格子软件
 * @createDate 2024/2/10 09:00
 * @contact 公众号：格子软件 微信：13716343106 邮箱：1424529270@qq.com
 */
@Data
public class AppDictDataAddParamModel {

    @NotBlank(message = "字典不能为空")
    @Size(min = 1,max = 32,message = "字典长度不正确")
    @ApiModelProperty(value = "字典")
    private String dictId;

    @NotBlank(message = "标识不能为空")
    @Size(min = 1,max = 100,message = "标识长度不正确")
    @ApiModelProperty(value = "标识")
    private String type;

    @NotBlank(message = "标识名称不能为空")
    @Size(min = 1,max = 200,message = "标识名称长度不正确")
    @ApiModelProperty(value = "标识名称")
    private String name;

    @NotNull(message = "是否默认不能为空")
    @ApiModelProperty(value = "是否默认")
    private Boolean isDefault;

    @NotNull(message = "排序不能为空")
    @ApiModelProperty(value = "排序")
    private Integer sort = 0;

    @ApiModelProperty(value = "表格回显样式")
    private String listClass;
}